// import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import { Button, NavBar, Form, Field, CellGroup, Notify } from 'vant'
import PiniaPersisted from 'pinia-plugin-persistedstate'
import '@/permission.ts'
// 2. 引入组件样式
import 'vant/lib/index.css'
import 'normalize.css/normalize.css'
import 'vant/es/notify/style'
const app = createApp(App)
// app.use(createPinia())
app.use(createPinia().use(PiniaPersisted))
app.use(router)
app.use(Button)
app.use(NavBar)
app.use(Form)
app.use(Field)
app.use(CellGroup)
app.use(Notify)
app.mount('#app')
